package com.bhex.kline;

import android.content.Context;

import java.util.HashMap;

/**
 * Created by BHEX.
 * User: gdy
 * Date: 2020/3/29
 * Time: 17:55
 */
public class KlineKind {

    public static KlineKind _instance;
    //K线类型tag
    public static String KIND_T_LABLE = "KIND_T";
    //K线附图
    public static String KIND_SUB_LABLE = "KIND_S";

    public static String KIND_MAIN_LABLE = "KIND_M";

    public static String KIND_T;
    public static String KIND_MAIN;
    public static String KIND_SUB;

    public static HashMap<String,String> kind_t_map = new HashMap<>();

    private KlineKind(){

    }
    public static KlineKind getInstance(){
        if(_instance==null){
            _instance = new KlineKind();
        }
        return _instance;
    }

    /**
     *
     * @param context
     */
    public void initKind(Context context){
        kind_t_map.clear();
        /*kind_t_map.put("kind_t_1fenshi",context.getString(R.string.kline_minutes));
        kind_t_map.put("kind_t_1m",context.getString(R.string.kline_one_minute));
        kind_t_map.put("kind_t_5m",context.getString(R.string.kline_five_minutes));
        kind_t_map.put("kind_t_15m",context.getString(R.string.kline_fifteen_minutes));
        kind_t_map.put("kind_t_30m",context.getString(R.string.kline_thirty_minutes));
        kind_t_map.put("kind_t_1h",context.getString(R.string.kline_one_hour));
        kind_t_map.put("kind_t_2h",context.getString(R.string.kline_two_hour));
        kind_t_map.put("kind_t_4h",context.getString(R.string.kline_four_hour));
        kind_t_map.put("kind_t_6h",context.getString(R.string.kline_four_hour));
        kind_t_map.put("kind_t_12h",context.getString(R.string.kline_twelve_hour));
        kind_t_map.put("kind_t_1d",context.getString(R.string.kline_days));

        kind_t_map.put("kind_t_1w",context.getString(R.string.kline_weeks));
        kind_t_map.put("kind_t_1M",context.getString(R.string.kline_months));*/

        //MMKVManager.getInstance().loadKind_T_Tag();

        //DebugLog.d("BaseKlineActivity==>:","t_tag=="+KlineFragment.KIND_T);
    }
}
